package com.jt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jt.pojo.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface UserMapper extends BaseMapper<User> {

    List<User> findAll();

    User findUserByUP(User user);

    @Select("select count(1) from user")
    long findTotal();

    List<User> findUserList(@Param("query") String query, @Param("start") int start,@Param("size") int size);

    void updateStatus(User user);

    void deleteUserById(Integer id);

    void saveUser(User user);

    User findUserById(Integer id);

    void updateUser(User user);
}
